package com.bh.wms.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BhtmsBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 盘点明细
 *
 * @author GPT
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_stocktake_detail")
@ApiModel(value = "盘点明细", description = "盘点任务明细")
public class WmsStocktakeDetail extends BhtmsBaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("盘点单ID")
    @Excel(name = "盘点单ID")
    private Long stocktakeOrderId;

    @ApiModelProperty("仓库ID")
    @Excel(name = "仓库ID")
    private Long warehouseId;

    @ApiModelProperty("库区ID")
    @Excel(name = "库区ID")
    private Long zoneId;

    @ApiModelProperty("货位ID")
    @Excel(name = "货位ID")
    private Long locationId;

    @ApiModelProperty("SKU ID")
    @Excel(name = "SKU ID")
    private Long skuId;

    @ApiModelProperty("批次号")
    @Excel(name = "批次号")
    private String batchNo;

    @ApiModelProperty("账面数量")
    @Excel(name = "账面数量")
    private Integer bookQuantity;

    @ApiModelProperty("实盘数量")
    @Excel(name = "实盘数量")
    private Integer countQuantity;

    @ApiModelProperty("差异数量")
    @Excel(name = "差异数量")
    private Integer diffQuantity;

    @ApiModelProperty("差异原因")
    @Excel(name = "差异原因")
    private String diffReason;
}

